<template>
	<view class="search_box"  @click="goSearch">
		<u-search placeholder="点击搜索" class="search" v-model="keyword"  :clearabled="true" :showAction="false"></u-search>
	</view>
</template>

<script>
	export default {
		name:"my_search",
		data() {
			return {
				keyword: ''
			};
		},
		methods: {
			goSearch(){
				uni.navigateTo({
					url: '../../subpkg/search/search'
				})
			}
		}
	}
</script>

<style lang="scss">
	.search_box{
		// width: 80%;
		margin: 0 auto; 
		padding-bottom: 20rpx;
		background-color: #eeeeee;	
		.search{
			padding: 0 30rpx;
		}
	}	
</style>